<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      .box {
        width: 120px;
        height: 120px;
        background: red;
        transform: rotate(45deg);
        margin: 200px auto;
        animation: xin 1s infinite;
      }
      .box::before,
      .box::after {
        content: '';
        position: absolute;
        width: 120px;
        height: 120px;
        background: red;
        border-radius: 50%;
      }
      .box::before {
        left: -68px;
      }
      .box::after {
        top: -68px;
      }
      @keyframes xin {
        0% {
          transform: rotate(45deg) scale(0.85);
        }
        50% {
          transform: rotate(45deg) scale(1);
        }
        100% {
          transform: rotate(45deg) scale(0.85);
        }
      }
      p {
        
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        background: linear-gradient(to right, red, green);
        -webkit-background-clip: text;
        color: transparent;
      }
    </style>
  </head>
  <body>
    <div class="box"></div>
    <p>儿童节快乐</p>
  </body>
</html>
